package com.lw.test;

import java.util.HashMap;
import java.util.Map;
import java.io.Serializable;

public class UserSettings implements Serializable {
    private static final long serialVersionUID = 1L;

    private String theme;
    private int fontSize;
    private Map<String, Boolean> featureFlags;

    public UserSettings(String theme, int fontSize) {
        this.theme = theme;
        this.fontSize = fontSize;
        this.featureFlags = new HashMap<>();
    }

    public String getTheme() {
        return theme;
    }

    public void setTheme(String theme) {
        this.theme = theme;
    }

    public int getFontSize() {
        return fontSize;
    }

    public void setFontSize(int fontSize) {
        this.fontSize = fontSize;
    }

    public Map<String, Boolean> getFeatureFlags() {
        return featureFlags;
    }

    public void setFeatureFlags(Map<String, Boolean> featureFlags) {
        this.featureFlags = featureFlags;
    }

    public void addFeatureFlag(String feature, boolean enabled) {
        featureFlags.put(feature, enabled);
    }
}
